package com.mxdx.edu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mxdx.edu.dao.StudentGroupDao;
import com.mxdx.edu.model.StudentGroupInfo;
import com.mxdx.edu.model.StudentGroupMember;
import com.mxdx.edu.service.IStudentGroupService;

/**
 * 群组服务层
 * @author HJG
 * 2020年9月5日
 */
@Service
public class StudentGroupServiceImpl implements IStudentGroupService{

	@Resource
	private StudentGroupDao studentGroupDao;
	
	@Override
	public int save(StudentGroupInfo stuGroup) {
		return studentGroupDao.save(stuGroup);
	}

	@Override
	public int update(StudentGroupInfo stuGroup) {
		return studentGroupDao.updateStudentGroup(stuGroup);
	}

	@Override
	public int saveMember(StudentGroupMember sgm) {
		return studentGroupDao.saveMember(sgm);
	}

	@Override
	public List<StudentGroupMember> findList(Map<String, Object> paramMap) {
		return studentGroupDao.findMemberListByMap(paramMap);
	}

	@Override
	public int updateStudentGroupMember(Map<String, Object> paramMap) {
		return studentGroupDao.updateStudentGroupMember(paramMap);
	}

	@Override
	public List<Map<String, Object>> findGroupUserList(Map<String, Object> paramMap) {
		return studentGroupDao.findGroupUserList(paramMap);
	}

	@Override
	public List<Map<String, Object>> findGroupList(Map<String, Object> paramMap) {
		return studentGroupDao.findGroupList(paramMap);
	}

}
